package ntd.util.modular.other.controller;

import io.swagger.annotations.Api;
import ntd.util.config.common.bo.ResponseBO;
import ntd.util.util.oshi.OshiInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = {"系统信息"})
@RestController
@RequestMapping("/oshi")
public class ControllerOshi {

    @GetMapping()
    public ResponseBO<OshiInfo> getInfo() throws Exception
    {
        OshiInfo oshiInfo = new OshiInfo();
        oshiInfo.copyTo();
        return new ResponseBO(oshiInfo);
    }
}
